<?php

/**
 * 不标准json转标准
 */
function ToJson($res)
{
	$res = trim(explode('=',$res)[1]);
    //$res = iconv('gbk','utf-8', $res);
    $res = str_replace("'",'"', $res);
    $res = preg_replace('/(\w+):/is', '"$1":', $res);
    print_r(json_decode($res,1));
}


$str = 'var scene = {
id:129864964,
code:"ftVV4Y0X",
name: "高端黑金视频邀请函会议商务活动论坛周年庆",
description: "黑金邀请函 高端大气 会议会展 商务活动 招商 地产金融通用",
pageMode:0,
cover:"o_1ci48r0ekn55ufd29lu417kq19.jpg",
bgAudio:{"url":"336e7929508b4ecdac072bdcb47ca2c3.mp3","name":"Ryan Farish - Legacy.mp3","id":722328800},
property: {"wxCount":0,"autoFlipTime":3.0,"autoFlip":false,"slideNumber":true,"triggerLoop":true,"forbidHandFlip":false,"shareDes":"{}","wxClickFarmerCount":0,"editorModel":1},
createTime:1531375789000,
publishTime:1531299427000,
bizType:0,
type:103,
userId:"4a2d8af948b198210148fcae52bc0083",
userType: "99",
memberType: "",
expiryTime: null,
isTemplate: 1,
dsAppId: "",
loadingLogo: ""
}';

ToJson($str);